﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AvalonCSS.aspx.cs" Inherits="WebAvalon.View.AvalonCSS" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../Scripts/dist/avalon.js"></script>
    <script>
        var vm = avalon.define(
            {
                $id: "test",
                background: "#bfa",
                bbb:"#dfa"
            }
            )
    </script>
</head>
<body>
        <div ms-controller="test">
            <div style="width:200px; height:50px"
                 ms-css="{background: @bbb}">
            </div>
            <select ms-duplex="@bbb">
                <option val="red">红</option>
                <option value="yellow">黄</option>
                <option val="green">绿</option>
            </select>
        </div>
</body>
</html>
